export default class Contracts {
  static list (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/page', 'get', params, axiosOption, httpOption);
  }
  static lists (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/list', 'get', params, axiosOption, httpOption);
  }
  static add (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/add', 'post', params, axiosOption, httpOption);
  }
  static oppoToContract (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/oppoToContract', 'post', params, axiosOption, httpOption);
  }
  static oppoToExistContract (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/oppoToExistContract', 'post', params, axiosOption, httpOption);
  }
  static update (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/update', 'post', params, axiosOption, httpOption);
  }
  static detail (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/view', 'get', params, axiosOption, httpOption);
  }
  static delete (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/delete', 'post', params, axiosOption, httpOption);
  }
  static overview (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/overview', 'get', params, axiosOption, httpOption);
  }
  static tasklist (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/task/list', 'get', params, axiosOption, httpOption);
  }
  static taskadd (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/task/add', 'post', params, axiosOption, httpOption);
  }
  static taskupdate (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/task/update', 'post', params, axiosOption, httpOption);
  }
  static taskview (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/task/view', 'get', params, axiosOption, httpOption);
  }
  static taskdelete (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/task/delete', 'post', params, axiosOption, httpOption);
  }
  static backlist (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/task/backlist', 'get', params, axiosOption, httpOption);
  }
  static submitComplete (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/task/submitComplete', 'post', params, axiosOption, httpOption);
  }
  static submitUserContract (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/submitUserTask', 'post', params, axiosOption, httpOption);
  }
  static submitUserTask (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/task/submitUserTask', 'post', params, axiosOption, httpOption);
  }
  static listForOppoAndContract (sender, axiosOption, httpOption) {
    return sender.doUrl('admin/upms/sysUser/listForOppoAndContract', 'post', axiosOption, httpOption);
  }
  static ExportFile (sender, params, fileName) {
    return sender.download('admin/contract/listExport', params, fileName);
  }
  static queryBusiness (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/businessOpportunity', 'get', params, axiosOption, httpOption);
  }
  static queryBusinessForContract (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/businessOpportunity/queryByBusinessOpportunity', 'get', params, axiosOption, httpOption);
  }
  static queryProject (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/project/page', 'get', params, axiosOption, httpOption);
  }
  // 查询线索
  static queryByClue (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/project/queryByClue', 'get', params, axiosOption, httpOption);
  }
  // 查询商机
  static queryByBusinessOpportunity (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/project/queryByBusinessOpportunity', 'get', params, axiosOption, httpOption);
  }
  // 查询合同
  static queryByContract (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/project/queryByContract', 'get', params, axiosOption, httpOption);
  }
  // 盖章申请
  static addCot (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/addCot', 'post', params, axiosOption, httpOption);
  }
  // 获取当前登录用户的已选审批人列表
  static queryTaskApprovaer (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/queryTaskApprovaer/contract', 'get', params, axiosOption, httpOption);
  }
  // 合同审核接口
  static throughContract (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/throughContract', 'post', params, axiosOption, httpOption);
  }
  // 合同归档提交
  static contractArchive (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/archive', 'post', params, axiosOption, httpOption);
  }
  // 合同归档修改
  static contractUpArchive (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/upArchive', 'post', params, axiosOption, httpOption);
  }
  // 合同归档审核
  static contractThroughArchive (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/contract/throughArchive', 'post', params, axiosOption, httpOption);
  }
}
